package com.zhihuichongcheng.application.bean.cricle;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by 3water on 2016/11/5.
 */

public class CricleTypeBean implements Parcelable {
    public static final Creator<CricleTypeBean> CREATOR = new Creator<CricleTypeBean>() {
        @Override
        public CricleTypeBean createFromParcel(Parcel in) {
            return new CricleTypeBean(in);
        }

        @Override
        public CricleTypeBean[] newArray(int size) {
            return new CricleTypeBean[size];
        }
    };
    private String jinbaoHomeCategoryId;
    private String categoryName;
    private List<CricleTypeBean> subCategories;
    protected CricleTypeBean(Parcel in) {
        jinbaoHomeCategoryId = in.readString();
        categoryName = in.readString();
        subCategories = in.createTypedArrayList(CricleTypeBean.CREATOR);
    }

    public CricleTypeBean()
    {

    }

    public String getJinbaoHomeCategoryId() {
        return jinbaoHomeCategoryId;
    }

    public void setJinbaoHomeCategoryId(String jinbaoHomeCategoryId) {
        this.jinbaoHomeCategoryId = jinbaoHomeCategoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public List<CricleTypeBean> getSubCategories() {
        return subCategories;
    }

    public void setSubCategories(List<CricleTypeBean> subCategories) {
        this.subCategories = subCategories;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(jinbaoHomeCategoryId);
        dest.writeString(categoryName);
        dest.writeTypedList(subCategories);
    }
}
